import axios from "../../services/axios";
import qs from 'qs';
export default function (useMock, params) {
    if (useMock) {
        return Promise.resolve({
            data: {
                size: 23,
                pageSize: 10,
                page: 1,
            }
        })
    } else {
        return axios.post("http://statistics.xianghuandian.com/statistics.php?action=addUserInfo", qs.stringify(params));
    }
};